package com.musicstore.biz.impl;

import java.util.List;

import com.musicstore.biz.GenreBiz;
import com.musicstore.dao.impl.GenreDaoImpl;
import com.musicstore.entity.Genre;

public class GenreBizImpl implements GenreBiz {
	
	private GenreDaoImpl gImpl=new GenreDaoImpl();
	public List<Genre> getAll() {
		
		return gImpl.getAll();
	}
	public static void main(String[] args) {
		GenreBizImpl gImpl =new GenreBizImpl();
		for (Genre genre : gImpl.getAll()) {
			System.out.println(genre.getName());
		}
	}
	public Genre fetchById(int id) {
		
		return gImpl.fetchById(id);
	}

	public boolean delete(int id) {
		
		return gImpl.delete(id);
	}

	public boolean add(Genre genre) {
		
		return gImpl.add(genre);
	}

	public boolean update(Genre genre) {
		
		return gImpl.update(genre);
	}

}
